LandView = new Class({
    Implements: Events,
    initialize: function() {
        this.el = new Element('div');
        this.el.addEvent('click', function() {
            this.fireEvent('points: add');
        }.bind(this));
    },
    render: function(adapter, width, height) {
        this.el.set({
            'id' : adapter.id,
            'class' : adapter.type,
            'styles' : {
                'left' : adapter.x*width,
                'top' : adapter.y*height,
                'width': adapter.width*width,
                'height': adapter.height*height
            }
        });
        this.renderInfo(adapter);
        return this;
    },
    renderInfo: function(adapter) {
        this.el.empty();
        new Element('span', {
            html: 'Propriétaire : <strong>'+adapter.owner+'</strong>'
        }).inject(this.el);
        new Element('span', {
            html: 'Nombre de points : <strong>'+adapter.points+'</strong>'
        }).inject(this.el);
        return this;
    }
});

BoardView = new Class({
    initialize: function() {
        this.width = 800;
        this.height = 400;
        this.el = $('board').setStyles({
            width: this.width,
            height: this.height
        });
    }
});